package com.asion.vmovie.ui.MVPContract;

import com.asion.vmovie.beans.DetialsBean;
import com.asion.vmovie.ui.MVPModel.BaseModel;
import com.asion.vmovie.ui.MVPPresenter.BasePresenter;
import com.asion.vmovie.ui.MVPView.BaseView;

/**
 * Created by asion on 16-10-20.
 */

public interface SearchContract {

    interface Model extends BaseModel{
        void getSearchDetials(int p,int size,String kw,OnGetSearchData onGetSearchData);
    }

    interface View extends BaseView<DetialsBean>{
    }

    abstract class Presenter extends BasePresenter<View,Model>{
        public abstract void getSearchData(int p,int size,String kw);
    }

   interface OnGetSearchData{
       void onGetSuccess(DetialsBean detialsBean);
       void onGetError(Throwable throwable);
    }
}
